var PatternPath = function(setSettings){
	this.patternRows	= setSettings.patternRows;
	this.patternColumns	= setSettings.patternColumns;
	this.path			= [];
	
	var fromLeft = this.patternRows%2;
		for(var i=0; i<this.patternRows;i++)
		{
				if(fromLeft === 0)
				{
					for(var j=this.patternColumns-1;j>-1;j--)
					{
					this.path.push([j,i]);
					}
					fromLeft = 1;					
				}
				else
				{
					for(var j=0;j<this.patternColumns;j++)
					{
					this.path.push([j,i]);
					}
					fromLeft = 0;					
				}
		}	

	this.giveCoordinates=function(patternShowOrder){
	return(this.path[patternShowOrder]);
	}
}